package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberGrowthAppraisal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 评价赠送成长值表
 * @author : 
 * @email : 
 * @since : 2020-04-12 02:10:26
 * @version : v1.0.0
 */
@Mapper
public interface  MememberGrowthAppraisalMapper {

    long insert(MememberGrowthAppraisal mememberGrowthAppraisal);

    long delete(Long id);

    long update(MememberGrowthAppraisal mememberGrowthAppraisal);

    MememberGrowthAppraisal queryByPrimaryKey(Long id);

    List<MememberGrowthAppraisal> query(MememberGrowthAppraisal mememberGrowthAppraisal);

    List<MememberGrowthAppraisal> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberGrowthAppraisal") MememberGrowthAppraisal mememberGrowthAppraisal);

    long queryPageCount(MememberGrowthAppraisal mememberGrowthAppraisal);

    //通过主规则id删除对应信息
    long deleteByRuleId(Long id);

    //通过主规则id查询成长值

    Long getGiveGrowthValById(Long id);

    List<MememberGrowthAppraisal> queryAppraisalByGrowthRuleId(@Param("growthRuleId")Long growthRuleId);
}